package com.project.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.project.bean.Cart;
import com.project.bean.Goods;
import com.project.dao.CartDao;
import com.project.dto.UserDto;
import com.project.service.CartService;
@Service
public class CartServiceImpl implements CartService{
	
	@Autowired
	private CartDao cartDao;

	public List<Goods> getCart(UserDto userDto) {
		// TODO Auto-generated method stub
		
		return cartDao.getCart(userDto);
	}

	public void clearCart(UserDto userDto) {
		// TODO Auto-generated method stub
		cartDao.clearCart(userDto);
	}
	
}
